﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _3._3._6_静态构造函数
{
    public static class UserPreferences
    {
        public static Color BackColor {  get; }
        static UserPreferences()
        {
            DateTime now= DateTime.Now;
            if (now.DayOfWeek==DayOfWeek.Saturday||now.DayOfWeek==DayOfWeek.Sunday)
            {
                BackColor = Color.Green;
            }
            else
            {
                BackColor = Color.Red;
            }
        }
    }
}
